package com.talent.dao;

import com.talent.page.Page;
import com.talent.pojo.Depart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DepartMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Depart record);

    int insertSelective(Depart record);

    Depart selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Depart record);

    int updateByPrimaryKey(Depart record);

    List<Depart> selectDepartPage(@Param("depart") Depart depart, @Param("page") Page<Depart> page);

    int validate(@Param("name") String name, @Param("code") String code, @Param("abbr") String abbr);

    List<Depart> selectAllDepart();

    Object deleteAll(String[] ids);
    
    Depart selectByMajorId(@Param("majorId")Integer majorId);
}